package com.ebupt.migu.music.channel.controller;

import com.ebupt.migu.music.channel.service.ChannelService;
import com.ebupt.migu.music.common.entity.ResultObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 渠道信息
 * @author: liuyangyang@ebupt.com
 * @date: 2021/7/23 14:22
 */
@RestController
@RequestMapping("/channel")
public class ChannelController {

    @Autowired
    private ChannelService channelService;

    @RequestMapping("/list")
    public ResultObject channels() {
        return channelService.channels();
    }
}
